{config_load file="global.conf"}
{config_load file="_TrackForecasts.conf" section="`$lang`"}

<table  border="0" cellpadding="0" cellspacing="0" bgcolor="#ffffff"  class="dasboard">
    <tr>
        <td width="73"><b>{#_TrackForecasts__labelForecastID#}{*ForecastID*}</b></td>
        <td width="70"><b>{#_TrackForecasts__labelPair#}{*Pair*}</b></td>
        <td width="50"><b>{#_TrackForecasts__labelAction#}{*Action*}</b></td>
        <td width="40"><b>{#_TrackForecasts__labelSize#}{*Lots*}</b></td>
        <td width="80"><b>{#_TrackForecasts__labelTime#}{*Time*}</b></td>
        <td width="60"><b>{#_TrackForecasts__labelEntry#}{*Entry*}</b></td>
        <td width="60"><b>{#_TrackForecasts__labelStop#}{*Stop*}</b></td>
        <td width="60"><b>{#_TrackForecasts__labelTarget#}{*Target*}</b></td>
        <td width="80"><b>{#_TrackForecasts__labelCloseTime#}{*Close*}</b></td>
        <td width="40" align="right"><b>{#_TrackForecasts__labelProfit#}{*Profit*}</b></td>
    </tr>


{foreach key="ForecastIndex" name="forecasts" item="itemForecast" from=$ForecastArr}

{assign var="fstr" value="%0.`$itemForecast.decimal`f"}

<tr>
    <td	{if $smarty.foreach.forecasts.iteration%2==1} class="darkRow" {/if}>
        {$itemForecast.SystemShortName}{$itemForecast.ForecastID}
    </td>


    <td	{if $smarty.foreach.forecasts.iteration%2==1} class="darkRow" {/if}>
        {$itemForecast.Pair}
    </td>

    <td	{if $smarty.foreach.forecasts.iteration%2==1} class="darkRow" {/if}>
        &nbsp;{if 0==$itemForecast.Side}{#_TrackForecasts__labelBuy#}{*BUY*}{else}{#_TrackForecasts__labelSell#}{*SELL*}{/if}
    </td>

    <td	{if $smarty.foreach.forecasts.iteration%2==1} class="darkRow" {/if} align="center">
        {$itemForecast.Size|string_format:"%d"}
    </td>

    <td	{if $smarty.foreach.forecasts.iteration%2==1} class="darkRow" {/if}>
        <nobr>&nbsp;{$itemForecast.OpenTimeF}</nobr>
    </td>

    <td	{if $smarty.foreach.forecasts.iteration%2==1} class="darkRow" {/if}>
        &nbsp;{$itemForecast.BeginPrice|string_format:"`$fstr`"}
    </td>

    <td	{if $smarty.foreach.forecasts.iteration%2==1} class="darkRow" {/if} {if !$itemForecast.StopPrice} align="center"{/if}>
        &nbsp;{if $itemForecast.StopPrice} {$itemForecast.StopPrice|string_format:"`$fstr`"} {else} - {/if}
    </td>

    <td	{if $smarty.foreach.forecasts.iteration%2==1} class="darkRow" {/if} {if !$itemForecast.EndPrice} align="center"{/if}>
        &nbsp;{if $itemForecast.EndPrice} {$itemForecast.EndPrice|string_format:"`$fstr`"} {else} - {/if}
    </td>

    <td	{if $smarty.foreach.forecasts.iteration%2==1} class="darkRow" {/if}>
        <nobr>{$itemForecast.CloseTimeF}</nobr>
    </td>

    <td	{if $smarty.foreach.forecasts.iteration%2==1} class="darkRow" {/if} align="right">
        <font {if !$itemForecast.FlagActive} {if $itemForecast.Profit>=0} color="#708F32" {else} color="red" {/if}{else}color="{*blackorange*}"{/if}>
        {$itemForecast.Profit}
        </font>
    </td>

</tr>
{/foreach}

</table>
